package com.pan.driver;

import com.pan.handle.req.impl.HumbleHttpReqHandle3;
import com.pan.handle.resp.impl.HumbleHttpRespHandle;
import com.pan.server.impl.BasicServer;
import com.pan.server.impl.HumbleHttpSingleServer;
import com.pan.servlet.impl.MyHumbleContainerImpl;

public class HumbleSingleDriver {

    public static void run(Class startClass){
        BasicServer server = new HumbleHttpSingleServer();
        server.setResponseHandle(new HumbleHttpRespHandle(new MyHumbleContainerImpl(startClass)));
        server.setRequestHandle(new HumbleHttpReqHandle3());
        server.run();
    }


}
